package com.taru.university.service;

import com.taru.university.model.Disease;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

public interface DiseaseService {

    List<Disease> queryDisease(@RequestParam(value = "diseaseSort") String diseaseSort, @RequestParam(value = "pageNum") int pageNum,
                               @RequestParam(value = "pageSize")   int pageSize);

    Disease queryDiseaseById(String diseaseId);

    void insertDisease(Disease disease);

    void deleteDisease(String diseaseId);

    List<Disease> queryDiseaseByTitle(@RequestParam(value = "diseaseTitle")String diseaseTitle,@RequestParam(value = "pageNum") int pageNum,
                                      @RequestParam(value = "pageSize")   int pageSize);

    List<Disease> queryDiseaseByStatue(@RequestParam(value = "pageNum") int pageNum,
                                       @RequestParam(value = "pageSize")   int pageSize);

    List<Disease> queryDiseaseSort(String diseaseSort);

    List<Disease> queryDiseaseByTitleLen(String diseaseTitle);

    List<Disease> queryDiseaseByStatueLen();
}
